remotemanager.utils.version module

class remotemanager.utils.version.Version(ver)[source]

Lightweight temporary class for version comparison.

Create at least one instance of Version to compare two semantic versions:

>>> v = Version("1.5.2")
>>> v < "4.1.0"
>>> True
Parameters:

ver (str) – Semantic version in x.y.z form

property major: int | str

Return the major component of the version

property minor: int | str

Return the minor component of the version

property patch: int | str

Return the patch component of the version

property version: str

Return the version string in the format ‘x.y.z’